package com.tdy.nht.doc.dao.impl;

import java.util.List;

import com.tdy.nht.common.dao.impl.AbstractDaoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.tdy.nht.doc.dao.${modelName}Dao;
import com.tdy.nht.doc.domain.${modelName}DO;
import com.tdy.nht.doc.domain.${modelName}Query;
import com.tdy.nht.doc.mapper.${modelName}Mapper;

/**
* 农事操作记录Dao组件
* @author yinqi
*/
@Repository
public class ${modelName}DaoImpl extends AbstractDaoImpl<${modelName}DO,Long> implements ${modelName}Dao {

    @Autowired
    private ${modelName}Mapper ${lowerModelName}Mapper;


    @Override
    public void setBaseMapper() {
       super.setBaseMapper(${lowerModelName}Mapper);
    }

    @Override
    public List<${modelName}DO> listByPage(${modelName}Query query) {
        return ${lowerModelName}Mapper.listByPage(query);
    }

    @Override
    public int deleteBatchByIds(List<Long> ids) {
        return ${lowerModelName}Mapper.deleteBatchByIds(ids);
    }

}
